package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.R;
import com.example.dto.DishDto;
import com.example.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜品管理 服务类
 * </p>
 *
 * @author lw
 * @since 2023-01-31
 */
public interface DishService extends IService<Dish> {
    R<String> saveDish(DishDto dishDto);

    R<Page> getPage(int page, int pageSize, String name);

    DishDto getDishById(Long id);

    R<String> updateDish(DishDto dishDto);

    R<List<DishDto>> findOne(Dish dish);

    R<String> delete(List<Long> ids);
}
